<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
	$(function() {
		$("#delImg").click(function() {
			if(confirm("삭제하시겠습니까?")==false){
				return;
			}
			location.href = "${initParam.root}admin/director_delete.do?directorNo=${requestScope.directorDetailMap.directorContent.directorNo }";
		});
		$("#updateImg").click(function() {
			location.href = "${initParam.root}admin/director_updateView.do?directorNo=${requestScope.directorDetailMap.directorContent.directorNo }";
		});	
	});//ready	
</script>
<h3>감독 - 상세정보</h3>
<hr align="left" width="150">
<center>
<table class="directorContent">
	<tr>
		<td>감독 이미지</td>
		<td>
			<img src="${initParam.root }${requestScope.directorDetailMap.directorContent.directorImgPath }" width="200" height="120">
		</td>
	</tr>
	<tr>
		<td>감독이름</td>
		<td>${requestScope.directorDetailMap.directorContent.name }</td>
	</tr>
	<tr>
		<td>영화정보</td>
		<td>
			<c:forEach var="movieVO" items="${requestScope.directorDetailMap.movielist}">
				<a href="">${movieVO.title }</a>
			</c:forEach>
		</td>
	</tr>
	<tr>
		<td>수상정보</td><td>${requestScope.directorDetailMap.awardlist }</td>
	</tr>
	<tr>
		<td align="center" colspan="3">
			<a href="${initParam.root}admin/directorList.do"><img src="${initParam.root}/img/list_btn.jpg"></a>
			<img id="updateImg" src="${initParam.root}/img/modify_btn.jpg">
			<img id="delImg"src="${initParam.root}/img/delete_btn.jpg">
		</td>
	</tr>
</table>
</center>
